import http from "@/utils/http2.js";

export function getRoles(data) {
  return http.post("/role/query", data);
}

export function deleteRole(id) {
  return http.delete("/role/delete", id);
}

export function updateRole(data) {
  return http.put("/role/update", data);
}

export function saveRole(data) {
  return http.post("/role/save", data);
}
